package com.cjl.host.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/15 12:03
 */

@Data
@TableName("host")
@Builder
@ApiModel(value = "Host", description = "店家pojo")
public class Host {

    @ApiModelProperty("主键，唯一标识")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("盐值")
    @TableField("salt")
    private String salt;

    @ApiModelProperty("店名")
    @TableField("name")
    private String name;

    @ApiModelProperty("创建日期")
    @TableField("created_time")
    private Date createdTime;

    @ApiModelProperty("最近一次更改时间")
    @TableField("updated_time")
    private Date updatedTime;
}
